package com.loyalove.demo.kotlinboot.configuration

import org.springframework.context.annotation.Configuration
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter

@Configuration
class ApplicationSecurity : WebSecurityConfigurerAdapter() {
    override fun configure(http: HttpSecurity) {
        http
                .formLogin()
                .and()
                .logout()
                .and()
                .csrf().disable()

    }
}